<template>
  <el-dialog
  title="增加备注"
  :visible.sync="centerDialogVisible"
  width="50%"
  center>
  <div>
    <el-row :gutter="6">
      <el-form ref="paramForm" :model="paramData" size="mini" label-width="280px">
        <el-col :span="14">
            <el-form-item label="备注" prop="param1">
              <el-input v-model="paramData.param1" type="textarea" placeholder=""
                  :autosize="{minRows: 6, maxRows: 6}" :style="{width: '100%'}"></el-input>
            </el-form-item>
        </el-col>
      </el-form>
    </el-row>
  </div>
  <span slot="footer" class="dialog-footer">
    <el-button @click="centerDialogVisible = false">取 消</el-button>
    <el-button type="primary" @click="addSimpleWaybillRemark" v-loading.fullscreen.lock="fullscreenLoading">确 定</el-button>
  </span>
</el-dialog>

  
</template>

<script>
import { ajax } from "@/store/yg/common/utils";
import axios from "axios";
import * as constant from "@/store/yg/common/constant";
import {m} from "@/store/yg/common/local";
export default {
  props: [
  　　'row', 'data', 'more'
　],
  data() {
    return {
      fullscreenLoading:false,
      centerDialogVisible: false,
      paramData: {
        id:0,
        operationRemark: '',
      },
      
    };
  },
  
  methods: {
    //修改操作备注
    addSimpleWaybillRemark(){
        this.centerDialogVisible = false;
        var param =  {};
        param['id'] = this.data['id'];
        param['param1'] = this.paramData.param1;
        console.log('param:',param);
        this.fullscreenLoading = true;
        ajax("addSimpleWaybillRemark",param).then(res => {
          this.fullscreenLoading = false;
            if (res.code != 200) {
              if(null != res.message){
                this.$message.error(m(res.message));
              }else{
                this.$message.error("修改失败!");
              }
            }else{
               this.$message.success("修改成功!");
               this.centerDialogVisible = false;
            }
          },
          error => {
            console.log(error);
          }
        );    
    }

  },
  mounted() {
    
  }
};
</script>

<style></style>
